package com.lovo.sys.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
@NoArgsConstructor
@TableName("supplyproduct")
@ApiModel(value = "供货商品实体",description = "供货商品实体")
public class SupplyProductBean {
    @TableId(value = "pk_spid",type = IdType.AUTO)
    @ApiModelProperty(value = "供货商品id")
    private long spid;

    @TableField("sp_idNum")
    @ApiModelProperty(value = "供货商品编号")
    private String idNum;

    @TableField("sp_productName")
    @ApiModelProperty(value = "商品名")
    private String productName;

    @TableField("sp_type")
    @ApiModelProperty(value = "商品类型")
    private String type;

    @TableField("sp_num")
    @ApiModelProperty(value = "供货数量")
    private int num;

    @TableField("sp_buyPrice")
    @ApiModelProperty(value = "采购价")
    private float buyPrice;

    @TableField("sp_totalPrice")
    @ApiModelProperty(value = "单项总价")
    private float totalPrice;

    @TableField("fk_orderNum")
    @ApiModelProperty(value = "供货批次编号")
    private String orderNum;

    @TableField(exist = false)
    @ApiModelProperty(value = "供货商品明细集合")
    private List<SupplyInfoBean> supplyInfoList;
}
